//
//  FontDefines.h
//  gweAD
//
//  Created by Marx on 2017/1/21.
//  Copyright © 2017年 mengy. All rights reserved.
//

#ifndef FontDefines_h
#define FontDefines_h


#define iOS9 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 9.0 ? YES : NO)

#define UIFontPingFangLight(s) (iOS9 ?[UIFont fontWithName:@"PingFangSC-Light" size:s] :[UIFont systemFontOfSize:s])
#define UIFontPingFangMedium(s) (iOS9 ?[UIFont fontWithName:@"PingFangSC-Medium" size:s] :[UIFont systemFontOfSize:s])
#define UIFontPingFangRegular(s) (iOS9 ?[UIFont fontWithName:@"PingFangSC-Regular" size:s] : [UIFont systemFontOfSize:s])

#define UIFontSystemBold(s) [UIFont boldSystemFontOfSize:s]
#define UIFontSystem(s) [UIFont systemFontOfSize:s]


//登录
//界面标题大小
#define NIFontTitleFont UIFontPingFangMedium(28)
//一级button大小，例如登录界面登录按钮
#define NIFontButton1TitleFont UIFontPingFangLight(21)
//连接按钮大小，例如登录界面注册、忘记密码、密码登录等按钮
#define NIFontLinkButtonTitleFont UIFontPingFangLight(14)


#endif /* FontDefines_h */
